package com.lanjiyin.cloud.common.msg;

public class ListRpcResponse<T> {
    T data;
    int count;

    public T getResult() {
        return data;
    }

    public void setResult(T result) {
        this.data = result;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public ListRpcResponse count(int count) {
        this.setCount(count);
        return this;
    }

    public ListRpcResponse count(Long count) {
        this.setCount(count.intValue());
        return this;
    }
}
